import { request } from "./request";

// 获取刷单词列表
export function getWordsList(query) {
  return request(
    { url: "/api/reciting/brushWordsList", method: "get" },
    {
      query,
    }
  );
}

// 获取单词详情
export function getWordsInfo(query) {
  return request(
    { url: "/api/reciting/wordsInfo", method: "get" },
    {
      query,
    }
  );
}

// 添加单词记录
export function saveWordsRecord(data) {
  return request(
    { url: "/api/reciting/saveWords", method: "post" },
    {
      data,
    }
  );
}

// 上传单词文件
export function uploadFiles(data) {
  return request(
    { url: "/api/common/upload", method: "post" },
    {
      data,
    }
  );
}

